package Box2D.Collision
{
	import Box2D.Collision.Shapes.b2Shape;
	import Box2D.Common.Math.b2Vec2;
	import Box2D.Common.b2Wrapper;
	
	public class b2DistanceProxy extends b2Wrapper
	{
		public function b2DistanceProxy(wrapper:Object)
		{
			super(wrapper);			
		}
		public function Set(shape:b2Shape,index:int):void{
			call('b2DistanceProxy_Set',shape.wrapper,index)
		}
		public function GetSupport(d:b2Vec2):int{
			return call('b2DistanceProxy_GetSupport',d.wrapper)
		}
		public function GetSupportVertex(d:b2Vec2):b2Vec2{
			return new b2Vec2(0,0,call('b2DistanceProxy_GetSupportVertex',d.wrapper));
		}
		public function GetVertexCount():int{
			return call('b2DistanceProxy_GetVertexCount');
		}
		public function GetVertex(index:int):b2Vec2{
			return new b2Vec2(0,0,call('b2DistanceProxy_GetVertex',index));
		}
	}
}